ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. Tags
    3. sam linux administration
    Log in to post
    • All categories
    • scottalanmillerS

      Linux: Basic Working with Text Files

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion linux sam linux administration scottalanmiller
      2
      5 Votes
      2 Posts
      2k Views
      scottalanmillerS

      Making heads and tails of text files...

      By default, the head and tail commands each give an output of ten lines. That's not bad, and for many things it is all that we need. But there are times that it would be nice to get more or less from these commands.

      To get head to give us a different number of lines, just add the number of lines that you wish to be returned following a hyphen, as it if were a normal flag. Here is an example to return the top five lines of a file.

      # head -5 /var/log/messages

      Strangely, and I have no explanation for this, tail works similarly but not exactly the same. The tail command needs a "-n" flag followed by the number of lines that we wish to extract. So if we wanted to see the final eighteen lines of a text file we would do it like so:

      # tail -n 18 /var/log/messages
    • scottalanmillerS

      Linux: Aliases

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion linux sam linux administration alias
      17
      8 Votes
      17 Posts
      4k Views
      tonyshowoffT

      @DustinB3403 said in Linux: Aliases:

      @johnhooks said in Linux: Aliases:

      @DustinB3403 said in Linux: Aliases:

      You know just because I hate having to type "clear" every time... every linux system I have is getting the "cls" alias!

      You can just do ctrl+l

      And have to remember yet another keyboard shortcut?!

      ctrl + l (L) is pretty universal for clear screen in the POSIX-compliant world, it's really about learning standard short cuts, like ctrl + k is delete line, ctrl + c is SIGINT, hell the latter even works in MSDOS and PowerShell.

    • scottalanmillerS

      Linux: Standard Command Structures

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion linux sam linux administration
      1
      5 Votes
      1 Posts
      1k Views
      No one has replied
    • scottalanmillerS

      Linux: File Colors

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion linux sam linux administration
      13
      8 Votes
      13 Posts
      3k Views
      guyinpvG

      @thwr said in Linux: File Colors:

      @thwr said in Linux: File Colors:

      @guyinpv said in Linux: File Colors:

      @thwr said in Linux: File Colors:

      @guyinpv said in Linux: File Colors:

      PuTTY, CentOS.
      I also use Consolas, 14pt text.

      Fonts are a client-side thing, the data is plain ASCII/UTF8/whatever

      Didn't say it wasn't.
      I mentioned PuTTY in Windows. I particularly like Consolas, I also use it for programming.

      Didn't mean to offend you, just wanted to clarify. Not everyone here is a Linux guru 😉

      OMG, that sounds very SAM-ish...

      Here you go.

      0_1473461608944_sandwich.jpg

      OH, you said SAM-ish, whoops.

    • scottalanmillerS

      From Windows to UNIX: File Extensions

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion windows linux unix system administration sam linux administration
      8
      6 Votes
      8 Posts
      3k Views
      scottalanmillerS

      @Mogrith Glad that someone is!! LOL. Thanks, it's fixed.

    • scottalanmillerS

      Linux: Working with Files

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion linux system admin sam linux administration
      9
      5 Votes
      9 Posts
      3k Views
      scottalanmillerS

      Fixed

    • scottalanmillerS

      Accessing a Linux Server via SSH

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion linux unix ssh remote access sam linux administration
      22
      6 Votes
      22 Posts
      7k Views
      scottalanmillerS

      @BRRABill said in Accessing a Linux Server via SSH:

      @scottalanmiller said

      The default of what is to copy, paste and hit return?

      PUTTY.

      Be default when you right click something to copy, it copies it and pastes it and then hits return.

      I guess perhaps just highlighting it copies it? I like the Windows method.

      No it does not. I thought maybe you were thinking this but did not want to imply it. That's a misunderstanding of what is happening. It only does that IF your Windows environment and your actions are copying a carriage return into the clipboard (which Windows does by default.) This has nothing to do with PuTTY and is all about your Windows desktop AND it only does this if YOU make it happen, it does not do that for the rest of us. We don't copy the carriage return into the clipboard unless we want it. Windows makes this easy to control as a feature, but it is an invisible feature of the Windows environment so if you are not a Windows power user, you might not be aware that there is an interface to it that you are misusing.

      PuTTY simply does what Windows tells it to do, PuTTY has no default behaviour like you are imagining.

    • scottalanmillerS

      Linux: The Lay of the Land and the Filesystem Hierarchy Standard

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion linux centos centos 7 sam linux administration
      21
      12 Votes
      21 Posts
      6k Views
      BRRABillB

      @scottalanmiller said in Linux: The Lay of the Land and the Filesystem Hierarchy Standard:

      @BRRABill said in Linux: The Lay of the Land and the Filesystem Hierarchy Standard:

      So to wrap this question up...

      Anything to be shared with users not on the local machine should be stored in /var and probably /var/exports

      So a file structure such as

      /var/exports/HRdata
      /var/exports/XObackups
      /var/exports/userhomefolders
      /var/exports/sharedDOCS

      Would be what you are expecting to see on a Linux file server....?

      Yes, that would be a very good approach.

      Thanks!

      Hope it was a good question.

    • scottalanmillerS

      Installing Our First Linux Virtual Machine for Learning Systems Administration

      Watching Ignoring Scheduled Pinned Locked Moved IT Careers linux centos centos 7 system administration career scale virtualization scale hc3 rhel rhel 7 ntg lab sam linux administration
      32
      13 Votes
      32 Posts
      11k Views
      NerdyDadN

      Had a spare laptop laying around. Installing CentOS now. Also planning on installing NextCloud here soon as well. Creating a repository/shared calendar for the family with this machine.

    • scottalanmillerS

      Linux Architectural Variety

      Watching Ignoring Scheduled Pinned Locked Moved IT Careers linux architecture sam linux administration
      1
      4 Votes
      1 Posts
      1k Views
      No one has replied
    • scottalanmillerS

      Overview of the Red Hat Linux Ecosystem

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion red hat rhel centos fedora linux sam linux administration
      1
      7 Votes
      1 Posts
      2k Views
      No one has replied
    • scottalanmillerS

      Why Learn Linux Systems Administration?

      Watching Ignoring Scheduled Pinned Locked Moved IT Careers linux career system administration sam linux administration
      1
      11 Votes
      1 Posts
      2k Views
      No one has replied
    • scottalanmillerS

      What Is UNIX

      Watching Ignoring Scheduled Pinned Locked Moved IT Careers unix linux operating systems sam linux administration
      1
      7 Votes
      1 Posts
      2k Views
      No one has replied
    • scottalanmillerS

      Why Does Open Source Matter?

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion open source sam linux administration
      2
      6 Votes
      2 Posts
      2k Views
      ChrisJC

      Open source has been a very important tool in the operation of many cheaper systems, by cheaper, I mean company's who want the best, for the least. Been there done that. But, we used a Zip program that had a 4gb limitation, probably due to the limitations in place at the time of writing/modification. There were no warnings on its help, or on user documentation. A 6gb structure was not being zipped, Music mostly ITunes. Sure no problem there, just the Owners Son. Documentation, patching after the fact? What of limitations as above? Backup's serve well but would not have been needed if we could have stored the dir in a non local storage device. Now testing is as thorough as you can get without knowing all sources modified since the first code was documented, and as above some documentation may not have been known by the author, whoever that might have been. Managers hate not having someone to scream at on the phone if some part of what they have used does not perform as advertised, HA. But still open source fills a void, one that some 'Licensed' code cannot fill. As long as this is true, pioneers will navigate through the code until the 'perfect' fit is found.

    • scottalanmillerS

      Linux Desktop for Learning Linux System Administration

      Watching Ignoring Scheduled Pinned Locked Moved IT Careers linux linux desktop career system administration sam linux administration
      1
      8 Votes
      1 Posts
      3k Views
      No one has replied
    • scottalanmillerS

      SAM: Learning Linux System Administration

      Watching Ignoring Scheduled Pinned Locked Moved IT Careers scottalanmiller linux career education sam linux administration scott alan miller
      134
      36 Votes
      134 Posts
      49k Views
      scottalanmillerS

      Added ZFS page: https://mangolassi.it/topic/19669

    • scottalanmillerS

      What Makes It a Linux OS?

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion linux kernel operating systems sam linux administration
      10
      3 Votes
      10 Posts
      4k Views
      AVI-NetworkGuyA

      @scottalanmiller said:

      (Windows 10 is kernel NT 6.4.)

      Windows 10 is kernel version 10. 😉 They changed it after one of the major consumer previews were released.

      0_1450808009008_Capture.JPG

    • scottalanmillerS

      Chosing an Enterprise Linux Server Distro

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion red hat linux server ubuntu rhel suse centos opensuse sam linux administration
      28
      8 Votes
      28 Posts
      9k Views
      Emad RE

      +1 for primary application platform on Ubuntu.

      If you mean what I think you mean, I use Centos for General server stuff, basically a server that can handle anything or can be more than 1 thing, however for Ubuntu and cause of the snaps, I use Ubuntu for specific roles like :

      File server
      Or
      RockChat server

      For specific purpose roles.

    • 1
    • 2
    • 3
    • 4
    • 4 / 4